import request from '@/utils/request'

export function loadData(params) {
    return request({
        url: '/uReport/report/loadData',
        method: 'post',
        data: params
    })
}

export function downloadWord(params) {
    return request({
        url: '/uReport/report/download/word',
        method: 'post',
        responseType: 'arraybuffer',
        data: params
    })
}

export function downloadExcel(params) {
    return request({
        url: '/uReport/report/download/excel',
        method: 'post',
        responseType: 'arraybuffer',
        data: params
    })
}

export function downloadPDF(params) {
    return request({
        url: '/uReport/report/download/pdf',
        method: 'post',
        responseType: 'arraybuffer',
        data: params
    })
}

export function print(params) {
    return request({
        url: '/uReport/report/print',
        method: 'post',
        responseType: 'arraybuffer',
        data: params
    })
}

export function refreshSearchForm(params) {
    return request({
        url: '/uReport/report/refreshForm',
        method: 'post',
        data: params
    })
}
